import request from '@/utils/request'
import axios from 'axios'

const headers = {
  'Content-Type': 'application/json'
}

// 充值记录
export function rechargelist(data) {
  return request({
    url: '/admin/asset/recharge/list',
    method: 'POST',
    data: JSON.stringify(data),
    headers
  })
}
// 提现记录
export function withdrawList(data) {
  return request({
    url: '/admin/asset/withdraw/list',
    method: 'POST',
    data: JSON.stringify(data),
    headers
  })
}
// 内部转账
export function innerTransferPage(data) {
  return request({
    url: '/admin/asset/innerTransferPage',
    method: 'POST',
    data: JSON.stringify(data),
    headers
  })
}
// bok转出
export function outTransferPage(data) {
  return request({
    url: '/admin/asset/outTransferPage',
    method: 'POST',
    data: JSON.stringify(data),
    headers
  })
}
// 参与节点
export function userRingPage(data) {
  return request({
    url: '/admin/asset/userRingPage',
    method: 'POST',
    data: JSON.stringify(data),
    headers
  })
}
// 平台充币
export function chargePage(data) {
  return request({
    url: '/admin/asset/chargePage',
    method: 'POST',
    data: JSON.stringify(data),
    headers
  })
}

// export function rechargeexport(obj ) {  // 导出
//   //console.log(JSON.stringify(obj))
//   return request({
//       url :"",
//       method: 'post',
//       // responseType: 'blob',
//       responseType: 'arraybuffer',
//       data: JSON.stringify(obj),
//          headers: {
//       'Content-Type': 'application/json',
//     }
//   })
// }
// 导出操作员列表
export function rechargeexport(obj) {
  return axios({
    url: '/bok/admin/excel/rechargeList',
    method: 'post',
    data: JSON.stringify(obj),
    responseType: 'arraybuffer',
    headers: {
      'Content-Type': 'application/json'
    }
  })
}
